<?php
$site_config = function_lib::site_config();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title><?php echo $site_config['configuration_title']; ?></title>
        <meta name="description" content="<?php echo $site_config['configuration_meta_description']; ?>" />
        <meta name="keywords" content="<?php echo $site_config['configuration_meta_keyword']; ?>" />

        <link rel="shortcut icon" type="image/gif" href="<?php echo Yii::app()->params['config']['dir']['favicon'] . $site_config['configuration_favicon']; ?>" />

        <link rel="stylesheet" href="<?php echo Yii::app()->params['frontendUrl']; ?>/css/style.css" type="text/css" media="screen, projection" />
        <link rel="stylesheet" href="<?php echo Yii::app()->params['frontendUrl']; ?>/css/slider.css" type="text/css" media="screen, projection" />

        <script src="<?php echo Yii::app()->params['frontendUrl']; ?>/js/jquery-1.5.2.min.js" type="text/javascript"></script>
        <script src="<?php echo Yii::app()->params['frontendUrl']; ?>/js/jquery.bxSlider.js" type="text/javascript"></script>
        
        <!-- Superfish 1.4.8 Multi Level Dropdown Menu Start -->
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->params['frontendUrl']; ?>/addons/superfish/css/superfish.css" media="screen">
        <!--<script type="text/javascript" src="<?php echo Yii::app()->params['frontendUrl']; ?>/addons/superfish/js/jquery-1.2.6.min.js"></script>-->
        <script type="text/javascript" src="<?php echo Yii::app()->params['frontendUrl']; ?>/addons/superfish/js/hoverIntent.js"></script>
        <script type="text/javascript" src="<?php echo Yii::app()->params['frontendUrl']; ?>/addons/superfish/js/superfish.js"></script>
        <script type="text/javascript">
            // initialise plugins
            jQuery(function(){
                jQuery('ul.sf-menu').superfish();
            });
        </script>

        <!-- Superfish 1.4.8 Multi Level Dropdown Menu End -->
        <style>
            /*-----------------------------------REGISTRATION TABLE----------------------------- */
            /*
            ===================================================
                  TABLE COMMON
            ===================================================
            */
            .table-common {
                clear:both;
                border-collapse:collapse;
                border:1px solid #ccc;
                border-top:none;
            }

            .table-common tr.even {
                background-color:#f9f9f9;
            }

            .table-common tr {
                background-color:#f1f1f1;
                border-top:1px solid #ccc;
            }

            .table-common th {
                padding:8px;
                color:#777;
                background-color:#ddd;
                margin:0 0 .75em 0;
                text-transform:uppercase;
                line-height:1.4em;
                text-align:left;
            }

            .table-common td {
                padding:4px 6px 10px 6px;
            }


            /*
            ===================================================
                  TABLE LIST
            ===================================================
            */
            .table-list {
                clear:both;
                border-collapse:collapse;
                border:1px solid #0094d2;
                border-top:none;
            }

            .table-list tr.even {
                background-color:#fcfcfc;
            }

            .table-list tr {
                background-color:#d1e0fa;
                border-top:1px solid #0094d2;
            }

            .table-list th {
                padding:8px;
                color:#fff;
                background-color:#0b3884;
                margin:0 0 .75em 0;
                text-transform:uppercase;
                letter-spacing:.1em;
                font:normal normal 95% 'trebuchet ms', trebuchet, arial, verdana, sans-serif;
                line-height:1.4em;
                border-right:1px solid #0094d2;
            }

            .table-list td {
                padding:4px 6px 10px 6px;
                border-right:1px solid #d9e9d3;
            }

            .table-list td:last-child,
            .table-list th:last-child {
                border-right:none;
            }

            /*-----------------------------------REFERAL----------------------------------------------------- */
            .referal { padding:0 30px 2px 0; text-align:right; }
            .referal-mid { color:#A76A00; font-weight:bold; }
            .referal-nama { color:#800000; font-weight:bold; }
            .referal-nohp { color:#000080; font-weight:bold; }

            /*-----------------------------------CONFIRMATION----------------------------------------------------- */
            .titleError { margin:5px 0 0 0; padding:5px 10px; border:1px solid #f6dbdb; border-bottom:none; background:#f6dbdb; color:#dd0000; }
            .msgError { margin:0 0 10px 0; padding:5px 5px; border:1px solid #f6dbdb; background:#fcf7f7; color:#dd0000; font-size:9pt; }

            .titleSuccess { margin:5px 0 0 0; padding:5px 10px; border:1px solid #e3f5e3; border-bottom:none; background:#daefda; color:#248724; }
            .msgSuccess { margin:0 0 10px 0; padding:5px 5px; border:1px solid #daefda; background:#f9fdf9; color:#248724; font-size:9pt; }

            .titleInfo { margin:0 0 0 0; padding:5px 10px; border:1px solid #dae1ef; border-bottom:none; background:#dae1ef; color:#4b6fb8; }
            .msgInfo { margin:0 0 10px 0; padding:5px 5px; border:1px solid #dae1ef; background:#f2f5fc; color:#4b6fb8; font-size:9pt; }
        </style>
    </head>
    <body>
        <div id="wrapper">
            <div id="header">
                <h1 class="tagline"><a href="<?php echo Yii::app()->baseUrl; ?>" class="logo"><img src="<?php echo Yii::app()->params['frontendUrl']; ?>/images/logo.png" alt="Global Infinite"/></a></h1>
                <div class="head-menu right">
                    <div class="info-cart">
                        &nbsp;<br/> <!--<a href="#">Daftar Belanja</a><br/><a href="#">0 Jumlah Keranjang</a>-->
                    </div>
                    <div class="top-menu">
                        <ul class="h-menu left">
                            <li><a class="register" href="<?php echo Yii::app()->baseUrl; ?>/registrasi">Register</a></li>
                            <li><a class="login" href="<?php echo Yii::app()->baseUrl; ?>/login">Login</a></li>
                        </ul>
                        
                        <div class="search-box right">
                            <form action="POST"><input class="input" type="text" name="search" value="pencarian..." onblur="if(this.value=='') this.value='pencarian...';" onfocus="if(this.value=='pencarian...') this.value='';" /><input class="button" type="submit" value=" "/></form>
                        </div>
                        <br/>
                    </div>
                </div>
                <div class="clear"></div>

                <div class="navigation">
                    <div class="social left">
                        <ul class="h-menu left">
                            <li><a href="#"><img src="<?php echo Yii::app()->params['frontendUrl']; ?>/images/twitter.png" /></a></li>
                            <li><a href="#"><img src="<?php echo Yii::app()->params['frontendUrl']; ?>/images/rss.png" /></a></li>
                            <li><a href="http://www.facebook.com/globalinfinite" target="_blank"><img src="<?php echo Yii::app()->params['frontendUrl']; ?>/images/facebook.png" /></a></li>
                        </ul>
                    </div>

                    <div class="main-menu right">
                        <?php $this->widget('application.widget.WidgetMenuTop'); ?>
                    </div>
                    <div class="clear"></div>
                </div>

            </div><!-- #header-->

            <div id="middle" <?php if(function_lib::uri_segment(1) != 'products') echo 'class="full"'; ?>>
                <div class="container">
                    <?php echo $content; ?>
                </div><!-- #container-->
                <?php if(function_lib::uri_segment(1) == 'products'): ?>
                <?php $this->widget('application.widget.WidgetProducts'); ?>
                <?php endif; ?>
                
            </div><!-- #middle-->

            <div class="bottom clearfix">
                <?php $this->widget('application.widget.WidgetContentMiddle'); ?>
            </div>

            <div id="footer">
                <div class="site-info clearfix">
                    <?php $this->widget('application.widget.WidgetContentBottom'); ?>
                </div>

                <div class="copy clearfix">
                    <p class="left"><?php echo $site_config['configuration_footer']; ?></p>
                    <!--<p class="right"><a href="#">Privasi & Keamanan</a> | <a href="#">Ketentuan & Syarat</a></p>-->
                </div>

                <div class="license">
                    <img src="<?php echo Yii::app()->params['frontendUrl']; ?>/images/license.png" alt=""/>
                </div>
            </div><!-- #footer -->
        </div><!-- #wrapper -->
    </body>
</html>
